package com.sz.admin.system.pojo.dto.filemonitor;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * 文件监控创建DTO
 *
 * @author sz-admin
 * @since 2025-01-13
 */
@Data
@Schema(description = "文件监控创建DTO")
public class SysFileMonitorCreateDTO {

    @Schema(description = "监控路径")
    @NotBlank(message = "监控路径不能为空")
    private String monitorPath;

    @Schema(description = "存储目录")
    @NotBlank(message = "存储目录不能为空")
    private String storageDir;

    @Schema(description = "监控状态（1:启用 0:停用）")
    @NotBlank(message = "监控状态不能为空")
    private String status;

    @Schema(description = "文件类型过滤（如：jpg,png,gif）")
    private String fileTypes;

    @Schema(description = "最大文件大小（字节）")
    private Long maxFileSize;

    @Schema(description = "是否删除源文件（1:是 0:否）")
    private String deleteSource;

    @Schema(description = "描述")
    private String description;

}